package com.lyy.controller;

import com.lyy.result.Result;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Liangyaoyun
 */
@RequestMapping("/api/v1/request-header")
public class RequestHeaderController {
    @ResponseBody
    @RequestMapping("/exe")
    public Result exe(@RequestHeader( value = "Host",required = false,defaultValue = "host") String host){
        return Result.success(host);

    }


}
